var express = require('express');
const firstCategoryModel = require('../model/firstCateModel');
const goodsListModel = require('../model/goodsListModel');
const secondCategoryModel = require('../model/secondCateModel');
const thirCategoryModel = require('../model/thirdCateModel');
var router = express.Router();

//分类路由中间件

//一级分类
router.get('/first',firstCategoryModel());
//二级分类
router.get('/second',secondCategoryModel())
//三级分类
router.get('/third',thirCategoryModel())
//根据三级分类id获取商品数据
router.get('/goodslist',goodsListModel());

module.exports = router;
